#!/bin/bash

FILE="MPI.csv"
rm $FILE

MPIOPT="-host creek05 -np 1"
mpirun $MPIOPT saxpy -s 256 | tee -a $FILE
MPIOPT="-host creek05,creek07 -np 2"
mpirun $MPIOPT saxpy -s 256 | tee -a $FILE
MPIOPT="-host creek05,creek07,creek08 -np 3"
mpirun $MPIOPT saxpy -s 256 | tee -a $FILE

